<template>
	<view>

		<view class="rule_title">每次参与消耗{{rule.expend}}积分</view>
		<view class="rule_title">一等奖{{rule.first_prize}}积分</view>
		<view class="rule_title">二等奖{{rule.second_prize}}积分</view>
		<view class="rule_title">三等奖{{rule.third_prize}}积分</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			rule:[]
		};
	},
	
	onLoad() {
		this.loadData();
	},
		
	methods: {
		loadData() {
			let me = this;
			me.Net._get('turntableRule', null, res => {
				me.rule = res.data.integral_rule;
			});
		},
		backPage() {
			uni.navigateBack({});
		},
		gotopage(e) {
			let url = e.currentTarget.dataset.url;
			uni.navigateTo({
				url: url
			});
		}
	}
};
</script>

<style>
page {
	/* background-color: #fff; */
}

.rule_title {
	width: 92%;
	margin: 0 auto;
	font-size: 4vw;
	color: #333;
	margin-top: 5vw;
	font-weight: bold;
}

.rule_text {
	width: 92%;
	margin: 0 auto;
	font-size: 3.5vw;
	color: #666;
	margin-top: 2vw;
}
</style>
